package com.fqgj.xjd.user.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.xjd.user.dao.UserBaseDao;
import com.fqgj.xjd.user.entity.UserBaseEntity;
import org.springframework.stereotype.Repository;

/**
* User: zhangxingyun
* Date: 2017-07-20
* Time: 18:38:53.023
*/

@Repository
public class UserBaseDaoImpl extends AbstractBaseMapper<UserBaseEntity> implements UserBaseDao {

    public int updateByUserCode(UserBaseEntity userBaseEntity) {
        return getSqlSession().update(getStatement("updateByUserCode"), userBaseEntity);
    }

    @Override
    public UserBaseEntity selectByUserCode(String userCode) {
        return getSqlSession().selectOne(getStatement("selectByUserCode"), userCode);
    }
}